package com.maikang.exammall.entity.dto.promote;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.maikang.exammall.entity.Commission;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;


@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class EarningDetailDTO {
    private Long clientId;
    private String clientAvatarUrl;
    private String clientUsername;
    private Long amount;
    private Long orderId;
    private String outTradeNo;
    @ApiModelProperty("0: 其他 1: 待完成，2：已完成，3：已退款")
    private Integer commissionOrderStatus;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date  orderCreatedDate;
    private List<Commission> commissions;
}
